//
//  MYTheme_Defult_Button.m
//  JQLive
//
//  Created by Bruce on 2020/1/11.
//  Copyright © 2020 JQLive. All rights reserved.
//

#import "MYTheme_Defult_Button.h"

@implementation MYTheme_Defult_Button

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initConfig];
    }
    return self;
}

- (void)initConfig
{
    ViewRadius(self, 8);
    [self setBackgroundImage:UIImageMake(@"common_Button_Theme_Back_Light") forState:UIControlStateNormal];
    [self setBackgroundImage:UIImageMake(@"common_Button_Theme_Back_Gray") forState:UIControlStateDisabled];
    
}

- (void)setIsDisableClick:(BOOL)isDisableClick
{
    _isDisableClick = isDisableClick;
    self.enabled = !isDisableClick;
}

@end
